home *** CD-ROM | disk | FTP | other *** search
- Path: prairie.nodak.edu!not-for-mail
- From: wstark@prairie.nodak.edu (Just Me)
- Newsgroups: comp.lang.c
- Subject: Re: What to do when feof() is NOT feof()
- Date: 24 Feb 1996 12:59:12 -0600
- Organization: North Dakota Higher Education Computing Network (NDHECN)
- Message-ID: <4gnn60$iba@prairie.nodak.edu>
- References: <824554814snz@metsys.demon.co.uk> <Dn7x8s.53s@news.cern.ch>
- NNTP-Posting-Host: prairie.nodak.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
-
- In article <Dn7x8s.53s@news.cern.ch>,
- Maurizio Loreti <loreti@mxsld2.pd.infn.it> wrote:
- >In article <824554814snz@metsys.demon.co.uk>, John Standen <John@metsys.demon.co.uk> writes:
-
- >>The do .. while !feof(in) sometimes causes the function to terminate
- ^^^^^^^^^^^ <- note this!
- >>very early in the file.
- ^^^^^ <- and this,
-
- >Hmmm, you did not notice, reading the FAQ list before posting, Q/A
-
- >12.2: Why does the code
-
- ... (we should all know what the FAQ says anyway :-)
-
- > copy the last line twice?
-
- This [section 12.2 of the FAQ] is not related to the original poster's
- question. He was wondering why it was terminating early, not why the last
- line was being copied twice. There is probably a character in the file
- that the operating system uses to indicate EOF (which would make it a
- platform specific question... perhaps the original poster should find a
- newsgroup about programming his platform, and ask there instead?)
-